home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime vr / vrscript / feature files / vrmovies.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  3.8 KB  |  96 lines

  1. //////////
  2. //
  3. //    File:        VRMovies.h
  4. //
  5. //    Contains:    Support for QuickTime movie playback in VR nodes.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         12/11/96    rtm        first file 
  14. //       
  15. //////////
  16.  
  17. #pragma once
  18.  
  19.  
  20. //////////
  21. //
  22. // header files
  23. //       
  24. //////////
  25.  
  26. #ifndef __QDOFFSCREEN__
  27. #include <QDOffscreen.h>
  28. #endif
  29.  
  30. #include "ComApplication.h"
  31. #include "VRScript.h"
  32.  
  33. #if TARGET_OS_MAC
  34. #include "MacFramework.h"
  35. #endif
  36.  
  37. #if TARGET_OS_WIN32
  38. #include "WinFramework.h"
  39. #endif
  40.  
  41.  
  42. //////////
  43. //
  44. // compiler macros
  45. //       
  46. //////////
  47.  
  48. #define RECT_WIDTH(rect)            ((rect).right-(rect).left)
  49. #define RECT_HEIGHT(rect)            ((rect).bottom-(rect).top)
  50.  
  51.  
  52. //////////
  53. //
  54. // constants
  55. //       
  56. //////////
  57.  
  58.  
  59. //////////
  60. //
  61. // function prototypes
  62. //       
  63. //////////
  64.  
  65. void                                VRMoov_Init (void);
  66. void                                VRMoov_Stop (void);
  67. void                                VRMoov_StartMovie (Movie theMovie);
  68. void                                VRMoov_PlayMovie (WindowObject theWindowObject, UInt32 theNodeID, UInt32 theEntryID, float thePanAngle, float theTiltAngle, float theScale, float theWidth, UInt32 theKeyRed, UInt32 theKeyGreen, UInt32 theKeyBlue, Boolean theUseBuffer, Boolean theUseCenter, Boolean theUseKey, Boolean theUseHide, Boolean theUseDir, Boolean theRotate, float theVolAngle, UInt32 theMode, UInt32 theOptions, char *thePathName);
  69. void                                VRMoov_PlayTransitionMovie (WindowObject theWindowObject, UInt32 theOptions, char *thePathName);
  70. Boolean                                VRMoov_LoadEmbeddedMovie (char *thePathName, WindowObject theWindowObject, VRScriptMoviePtr theEntry);
  71. void                                VRMoov_LoopEmbeddedMovie (Movie theMovie, Boolean isPalindrome);
  72. Boolean                                VRMoov_DoIdle (WindowObject theWindowObject);
  73. void                                VRMoov_DumpNodeMovies (WindowObject theWindowObject);
  74. void                                VRMoov_DumpSceneMovies (WindowObject theWindowObject);
  75. void                                VRMoov_DumpSelectedMovies (WindowObject theWindowObject, UInt32 theOptions);
  76. VRScriptMoviePtr                    VRMoov_GetEmbeddedVideo (WindowObject theWindowObject);
  77. float                                VRMoov_GetEmbeddedMovieWidth (WindowObject theWindowObject);
  78. void                                VRMoov_SetEmbeddedMovieWidth (WindowObject theWindowObject, float theWidth);
  79. void                                VRMoov_GetEmbeddedMovieCenter (WindowObject theWindowObject, QTVRFloatPoint *theCenter);
  80. void                                VRMoov_SetEmbeddedMovieCenter (WindowObject theWindowObject, const QTVRFloatPoint *theCenter);
  81. float                                VRMoov_GetEmbeddedMovieScale (WindowObject theWindowObject);
  82. void                                VRMoov_SetEmbeddedMovieScale (WindowObject theWindowObject, float theScale);
  83. void                                VRMoov_GetEmbeddedMovieRect (WindowObject theWindowObject, Rect *theRect);
  84. void                                VRMoov_SetEmbeddedMovieRect (WindowObject theWindowObject, const Rect *theRect);
  85. void                                VRMoov_SetAllBalanceAndVolume (WindowObject theWindowObject, float thePan, float theTilt);
  86. void                                VRMoov_SetOneBalanceAndVolume (Movie theMovie, MediaHandler theMediaHandler, float thePan, float theTilt, float theMoviePan, float theVolAngle);
  87. OSErr                                VRMoov_CalcImagingMatrix (WindowObject theWindowObject, Rect *theBBufRect);
  88. OSErr                                VRMoov_SetupDecompSeq (VRScriptMoviePtr theEntry, GWorldPtr theDestGWorld);
  89. OSErr                                VRMoov_RemoveDecompSeq (VRScriptMoviePtr theEntry);
  90. PASCAL_RTN OSErr                    VRMoov_BackBufferImagingProc (QTVRInstance theInstance, Rect *theRect, UInt16 theAreaIndex, UInt32 theFlagsIn, UInt32 *theFlagsOut, WindowObject theWindowObject);
  91. PASCAL_RTN OSErr                    VRMoov_CoverProc (Movie theMovie, RgnHandle theRegion, WindowObject theWindowObject);
  92. void                                VRMoov_SetVideoGraphicsMode (Movie theMovie, VRScriptMoviePtr theEntry, Boolean theSetVGM);
  93. VRScriptMoviePtr                    VRMoov_GetFinishedMovie (WindowObject theWindowObject);
  94. void                                VRMoov_CheckForCompletedMovies (WindowObject theWindowObject);
  95. void                                VRMoov_DumpEntryMem (VRScriptMoviePtr theEntry);
  96.